# -*- encoding: utf-8 -*-
from django.template import RequestContext
from django.shortcuts import render_to_response

from django.views.decorators.cache import cache_page

from models import Streaming

@cache_page(60 * 15)
def streaming(request):
    stream = request.section.stream.get()

    return render_to_response('streaming/streaming.html',
                              {'stream': stream,},
                              context_instance=RequestContext(request))
